package com.liujit.standard.basis.generator.engine.config;

import lombok.Data;

/**
 * @Description Mapper模板生成的配置
 * @Author LiuJun
 * @Date 2020/8/13 2:40 下午
 */
@Data
public class MapperConfig {

    private ContextConfig contextConfig;

    private String templatePath;

    private String xmlTemplatePath;

    public void init() {
        this.templatePath = "\\src\\main\\java\\" + contextConfig.getPackageName().replaceAll("\\.", "\\\\")
                + "\\mapper\\{}Mapper.java";
        this.xmlTemplatePath = "\\src\\main\\resources\\mapping\\{}Mapping.xml";
    }
}
